package com.nisco;

import com.nisco.service.IUserService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ConsumerApp
{
    public static void main(String[] args)
    {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath*:/META-INF/spring/consumer.xml");
        IUserService userService = (IUserService)context.getBean("userService");
        System.out.println(userService.getNameById("123"));
    }
}
